import { ref } from 'vue'

export const useModalDataInit = () => {
  const modalShow = ref<boolean>(false)
  const modalData = ref<any>(null)

  // 关闭 modal
  const closeModal = () => {
    modalShow.value = false
    modalData.value = null
  }

  return {
    modalData,
    modalShow,
    closeModal
  }
}
